﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="cw_Fybxspd.aspx.cs" Inherits="demo.Page.CW.cw_Fybxspd" %>

<%@ Register src="../../Controls/AssessmentExt.ascx" tagname="AssessmentExt" tagprefix="uc1" %>
<%@ Register src="../../Controls/Attachment.ascx" tagname="Attachment" tagprefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title><%=TaskAPI.Process %></title>
    <%=LinkCss %> 
</head>
<body>
    <form id="form1" runat="server">
    <%=Prefix %>

    <fieldset>
        <legend>基本信息</legend>
        <table cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td>单号：</td>
            <td colspan="5"><anthem:Label ID="ApplicationNo" runat="server"></anthem:Label></td>
        </tr>
        <tr>
            <td>填表日期：</td>
            <td colspan="5"><anthem:Label ID="Time" runat="server"></anthem:Label></td>
        </tr>
        <tr>
            <td>姓名：</td>
            <td><anthem:Label runat="server" ID ="UserFullName"></anthem:Label></td>
            <td></td>
            <td align="right">部门：</td>
               <td colspan="2"><anthem:Label runat="server" ID ="Department" Visible="false"></anthem:Label>
            <anthem:Label ID="DepEName" runat="server"></anthem:Label>
            </td>
        </tr>
        <tr>
            <td style="width:110px">电话：</td>
            <td style="width:150px"><anthem:Label runat="server" ID ="Tel"></anthem:Label></td>
            <td style="width:110px"></td>
            <td style="width:150px"></td>
            <td style="width:110px"></td>
            <td></td>
        </tr>
        <tr>
            <td>事项主题：<anthem:Image runat="server" ID="R_Subject" ImageUrl="~/Resource/Images/Icon_Required.gif" Width="14" Height="13" AutoUpdateAfterCallBack="true" /></td>
            <td colspan="5"><anthem:TextBox runat="server" ID="Subject" Width="400" /></td>
        </tr>                 
    </table>
    </fieldset>

    <fieldset>
    <legend>费用事宜</legend>
    <table border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="6">
                <anthem:Repeater ID="Details" runat="server" AutoUpdateAfterCallBack="true" OnItemDataBound="Details_ItemDataBound">
                    <HeaderTemplate>
                        <table width="100%" cellpadding="0" cellspacing="0" class="divTable">
                            <thead class="Title">
                                <tr style="background: url(../../Resource/Images/Icon_TableTitle.gif) repeat;">
                                    <td align="center" style="width: 15px; <%=isCssShow %>"></td>
                                    <td align="center" style="width: 90px;"> 日期 </td>
                                    <td align="center" style="width: 90px;">付款类别</td>
                                    <td align="center" style="width: 90px;">付款类型</td>
                                    <td align="center" style="width: 90px">金额</td>
                                    <td align="center" style="width: 90px">发票张数</td>
                                    <td align="center" style="width: 90px;<%=isCssShowPrint %>">备注</td>
                                    <td align="center" style="width: 90px">关联事项审批</td>
                                    <td></td>
                                </tr>
                            </thead>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr class="Item">
                            <td align="center" style="<%=isCssShow %>">
                                <anthem:CheckBox ID="Cb_XZ" runat="server" alt='<%# Eval("No")%>' AutoUpdateAfterCallBack="true" />
                            </td>
                            <td>
                                <anthem:TextBox runat="server" ID="Rq" AutoUpdateAfterCallBack="true" />
                            </td>
                            <td>
                                <anthem:DropDownList ID="Fklb" runat="server" Width="80px" Style="border: 1px solid #ccc"
                                    AutoUpdateAfterCallBack="true">
                                </anthem:DropDownList>
                            </td>
                            <td>
                                <anthem:DropDownList ID="Fklx" runat="server" Width="80px" Style="border: 1px solid #ccc"
                                    AutoUpdateAfterCallBack="true">
                                </anthem:DropDownList>
                            </td>
                            <td><anthem:TextBox runat="server" ID="Je" AutoUpdateAfterCallBack="true" OnTextChanged="Je_TextChanged" AutoCallBack="true" /></td>
                            <td><anthem:TextBox runat="server" ID="Fpzs" AutoUpdateAfterCallBack="true" /></td>
                            <td style="<%=isCssShowPrint %>"><anthem:TextBox runat="server" ID="Bz" AutoUpdateAfterCallBack="true" /></td>
                            <td><anthem:TextBox runat="server" ID="Sxspdmc" AutoUpdateAfterCallBack="true" />
                                <anthem:Label ID="Url" runat="server"  AutoUpdateAfterCallBack="true" Visible="false"  Text="Label" />
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </anthem:Repeater>
            </td>
        </tr>
        <tr>
            <td  colspan="6">
                <anthem:Button ID="detailsAdd" runat="server" AutoUpdateAfterCallBack="true" Text="添加行"
                    EnableCallBack="true" OnClick="AddDelete_Click" Style="background: url('../../Resource/Images/Icon_ButtonBg.gif') 0px -12px;
                    border: 1px solid #FCC245; padding-top: 2px; cursor: pointer; height: 22px; width: 60px;
                    margin-right: 4px; margin-top: 4px; margin-bottom: 4px;" />&nbsp;&nbsp;
                <anthem:Button ID="detailsDel" runat="server" AutoUpdateAfterCallBack="true" Text="删除行"
                    EnableCallBack="true" OnClick="AddDelete_Click" Style="background: url('../../Resource/Images/Icon_ButtonBg.gif') 0px -12px;
                    border: 1px solid #FCC245; padding-top: 2px; cursor: pointer; height: 22px; width: 60px;
                    margin-right: 4px; margin-top: 4px; margin-bottom: 4px;" />
            </td>
        </tr>
    </table>
     <div>
        　合计：　 <anthem:TextBox runat="server" ID="Hjje" Width="110px" AutoUpdateAfterCallBack="true" />元  　　　　
        　大写   (<anthem:TextBox runat="server" ID="HjjeDX" Width="180px" AutoUpdateAfterCallBack="true" />)
     </div>
    </fieldset>

    <fieldset>
    <legend>其他信息 </legend>
        <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td>是否需总裁<br />审批：<anthem:Image runat="server" ID="R_IsToCEO" ImageUrl="~/Resource/Images/Icon_Required.gif" Width="14" Height="13" AutoUpdateAfterCallBack="true" /></td>
                <td>
                    <anthem:DropDownList ID="IsToCEO" runat="server" Width="80px" AutoUpdateAfterCallBack="true">
                        <asp:ListItem/>
                        <asp:ListItem>是</asp:ListItem>
                        <asp:ListItem>否</asp:ListItem>
                    </anthem:DropDownList>
                </td>
            </tr>
            <tr style="<%=isCssShowPrint %>">
                <td  valign="top" style=" width:110px;">事由：<anthem:Image runat="server" ID="R_Sy" ImageUrl="~/Resource/Images/Icon_Required.gif" Width="14" Height="13" AutoUpdateAfterCallBack="true" /></td>
                <td colspan="5">
                    <anthem:TextBox runat="server" ID="Sy" TextMode="MultiLine" Height="90px"></anthem:TextBox>
                </td>
            </tr>
            <tr>
                <td  valign="top" style=" width:110px;">其他说明：</td>
                <td colspan="5">
                    <anthem:TextBox runat="server" ID="Qtsm" TextMode="MultiLine" Height="90px"></anthem:TextBox>
                </td>
            </tr>
            <tr>
                <td valign="top">附件上传:</td>
                <td colspan="5"><div style="width:500px;"><uc2:Attachment ID="Attachment1" runat="server" /></div></td>
            </tr>
        </table>
    </fieldset>
    <anthem:Panel ID="pl_ZFxx" runat="server" AutoUpdateAfterCallBack="true">
        <fieldset>
            <legend>分批支付</legend>
            <anthem:Repeater ID="_Details" runat="server" AutoUpdateAfterCallBack="true" OnItemDataBound="Details_ItemDataBound">
                    <HeaderTemplate>
                        <table width="100%" cellpadding="0" cellspacing="0" class="divTable">
                            <thead class="Title">
                                <tr style="background: url(../../Resource/Images/Icon_TableTitle.gif) repeat;">
                                    <td align="center" style="width: 15px; <%=isCssShow %>"></td>
                                    <td align="center" style="width: 90px;"> 日期 </td>
                                    <td align="center" style="width: 90px;">支付金额</td>
                                    <td>备注</td>
                                </tr>
                            </thead>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr class="Item">
                            <td align="center" style="<%=_isCssShow %>">
                                <anthem:CheckBox ID="Cb_XZ" runat="server" alt='<%# Eval("No")%>' AutoUpdateAfterCallBack="true" />
                            </td>
                            <td>
                                <anthem:TextBox runat="server" ID="Rq" AutoUpdateAfterCallBack="true" />
                            </td>
                            <td><anthem:TextBox runat="server" ID="Zfje" AutoUpdateAfterCallBack="true" /></td>
                            <td><anthem:TextBox runat="server" ID="Bz" AutoUpdateAfterCallBack="true" /></td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </anthem:Repeater>
                <div>
                    <anthem:Button ID="Add_Details" runat="server" AutoUpdateAfterCallBack="true" Text="添加行"
                    EnableCallBack="true" OnClick="AddDelete_Click" Style="background: url('../../Resource/Images/Icon_ButtonBg.gif') 0px -12px;
                    border: 1px solid #FCC245; padding-top: 2px; cursor: pointer; height: 22px; width: 60px;
                    margin-right: 4px; margin-top: 4px; margin-bottom: 4px;" />&nbsp;&nbsp;
                    <anthem:Button ID="Del_Details" runat="server" AutoUpdateAfterCallBack="true" Text="删除行"
                    EnableCallBack="true" OnClick="AddDelete_Click" Style="background: url('../../Resource/Images/Icon_ButtonBg.gif') 0px -12px;
                    border: 1px solid #FCC245; padding-top: 2px; cursor: pointer; height: 22px; width: 60px;
                    margin-right: 4px; margin-top: 4px; margin-bottom: 4px;" />
                </div>
        </fieldset>
    </anthem:Panel>

    <uc1:assessmentext ID="AssExt" runat="server" OnSaveAsDraft="SaveAsDraft_Click" OnSend="Send_Click" OnAborted="Aborted_Click"/>
    <%=Postfix%>

    </form>
</body>
</html>